package model;


/**
 * Saves the text message into the conversation
 * 
 * <p>
 * <ul>
 * <li>Project: 		ChatSystemG3</li>
 * <li>Called by: 		Conversation</li>
 * </ul>
 * </p>
 * 
 * @author COMBES Nicolas - LECHANTRE Arnaud
 * @see ModelMessage
 */
public class ModelTextMessage extends ModelMessage{

	/**
	 * Message sent
	 */
	private String message;
	
	
	/**
	 * construct
	 * @param sender message sender
	 * @param message sent message
	 */
	public ModelTextMessage(User sender, String message) {
		super(sender);
		this.message = message;
	}

	/**
	 * getMessage
	 * @return the sent message
	 */
	public String getMessage() {
		return message;
	}

	/**
	 * setMessage; Saves sent message
	 * @param message sent message
	 */
	public void setMessage(String message) {
		this.message = message;
	}
	
	
}
